<template>
    <div class="warp">
        <div class="title">
            <router-link to="qilin">
            <i class="iconfont icon-fanhui1"></i>
            </router-link>
            <div> 品牌</div>
        </div>
        <div class="con">
            <ul class="list">
                <li @click="getclass" v-for="(item,key) in result" :key="key">
                    <img :src="item.logoUrl" alt="">
                    <p>{{item.Name}}</p>
                </li>
            </ul>
        </div>
        <div class="foter">
            <div> 
                <router-link to="qilin">
                <img src="../../assets/ic_homeq.png" alt="" style="width:0.25rem;height:0.25rem;" v-if="aaa" >
                <!-- <img src="../../assets/店铺-当前.png" alt="" v-else> -->
                <p>店铺</p></router-link>
            </div> 
            <div>
                <router-link to="qilinfenlei">
                <img src="../../assets/ic_classifyq.png" alt="" v-if="bbb" >
                <!-- <img src="../../assets/分类-当前.png" alt="" > -->
                </router-link>
                <p>分类</p>
            </div> 
            <div>
                <!-- <img src="../../assets/品牌.png" alt="" v-if="ccc"> -->
                <img src="../../assets/ic_brandh.png" alt="" >
                <p>品牌</p>
            </div> 
            <div style="margin-right:0.4rem;"> 
                <router-link to="qldangan">
                <img src="../../assets/档案.png" alt="" v-if="ddd" >
                <!-- <img src="../../assets/档案-当前.png" alt="" v-else> -->
                <p>档案</p></router-link>
            </div> 
        </div>
    </div>
</template>
<script>
import axios from '../../utils/http';
export default {
    data() {
        return {
            aaa:true,
            bbb:true,
            ccc:true,
            ddd:true,
            result:""
        }
    },
    methods:{
        dj(){
            this.aaa=false
        },
        dj2(){
            this.bbb=false
        },
        dj3(){
            this.ccc=false
        },
        dj4(){
            this.ddd=false
        },
        getclass(){
            axios.post("https://web-gateway.newbeescm.com/b2b-app-web/getBrandByDealerId/107",{

            }).then(res =>{
                this.result=res.data.result
                console.log(this.result)
            })
        }
    },
    mounted() {
        this.getclass()
    },
}
</script>
<style lang="scss" scoped>
a{
  color: #333
}
    .foter{
    width: 100%;
    height: 0.5rem;
    background: #fff;
    display: flex;
    position: fixed;
    bottom: 0;
    align-items: center;
    justify-content: center;
    font-size: 0.14rem;
    border-top: 1px solid #ccc;
    div{
        margin-top: 0.15rem;
        margin-left: 0.5rem;
        position: relative;
        top: 0.05rem;
        
        img{
            position: absolute;
            top:-0.25rem;
            left: 0.05rem;
        }
    }
    img{
        width: 0.18rem;
        height: 0.18rem;;
    }
}
.title{
    width: 100%;
    height: 0.44rem;
    background: red;
    position: relative;
    color: #fff;
    div{
        line-height: 0.44rem;
    }
    .icon-fanhui1{
        position: absolute;
        left: 0.14rem;
        top: 0.1rem;
        color: #999;
        font-size: 0.25rem;
    }
}
.list{
    
    margin-left: 0.14rem;
    margin-top: 0.16rem;
}
.list li{
    width: 0.8rem;
    height: 0.8rem;
    border: 1px solid #f1f2f6;
    margin-right:0.07rem;
    float: left;
    img{
        width: 0.7rem;
        height: 0.58rem;
        margin-top: 0.11rem;
    }
    p{
        font-size: 0.12rem;
        margin-top: 0.17rem;
    }
}
</style>